package com.d3works.apps.account.service.batch;

import com.d3works.apps.account.db.repo.InvoicePaymentRepository;
import com.d3works.apps.account.db.repo.InvoiceRepository;
import com.d3works.apps.account.service.app.AppAccountService;
import com.d3works.apps.account.service.payment.invoice.payment.InvoicePaymentCreateService;
import com.google.inject.Inject;

public class BatchCreditTransferSupplierPayment extends BatchCreditTransferInvoice {

  @Inject
  public BatchCreditTransferSupplierPayment(
      AppAccountService appAccountService,
      InvoiceRepository invoiceRepo,
      InvoicePaymentCreateService invoicePaymentCreateService,
      InvoicePaymentRepository invoicePaymentRepository) {
    super(appAccountService, invoiceRepo, invoicePaymentCreateService, invoicePaymentRepository);
  }

  @Override
  protected void process() {
    processInvoices(InvoiceRepository.OPERATION_TYPE_SUPPLIER_PURCHASE);
  }
}
